// pages/me/me.js
Component({
  properties:{
    user:{
      //定义类型
      type:Object,
      //定义默认值
      value:{}
    }
  },
  data: {
    
  },
  methods:{
    changeInfo(){//我的信息
      console.log("自己的账号",this.properties.user.admin)
      var admin=this.properties.user.admin
      wx.navigateTo({
        url: '/pages/changePatient/changePatient?admin='+admin,
      })
    },
    changeadmin(){//账号信息
      var user=JSON.stringify(this.properties.user)
      wx.navigateTo({
        url: '/pages/changeAdmin/changeAdmin?user='+user,
      })
    },
    myCollect(){//我的收藏
      var admin=this.properties.user.admin
      wx.navigateTo({
        url: '/pages/myCollectPatient/myCollectPatient?admin='+admin,
      })
    },
    appointHistory(){//预约记录
      var admin=this.properties.user.admin
      wx.navigateTo({
        url: '/pages/appointHistoryC/appointHistoryC?admin='+admin,
      })
    },
    diagnoseHistory(){//就诊记录
      var admin=this.properties.user.admin
      wx.navigateTo({
        url: '/pages/diagnoseHistoryC/diagnoseHistoryC?admin='+admin,
      })
    }
  }
  
  
})